<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<!-- ctrl+/ 注释语句-->
		<!-- 开发环境版本，包含了有帮助的命令行警告 -->
		<script src="https://cdn.jsdelivr.net/npm/vue/dist/vue.js"></script>
	</head>
	<body>
		<div id="components-demo">
			<c1></c1>
			<c2></c2>
		</div>
		<script>
			var child1={
				template:'<h1>自定义组件1</h1>'
			}
			var child2={
				template:'<h1>自定义组件2</h1>'
			}
			
			new Vue({
				el:'#components-demo' ,
				components:{
					'c1':child1,
					'c2':child2
				}
			})
		</script>
	</body>
</html>
